module.exports = (date)=>{
  let year = date.getFullYear()
  let month = date.getMonth()+1
  let day = date.getDate()
  let hh = date.getHours()<10? "0"+date.getHours():date.getHours()
  let mm = date.getMinutes()<10? "0"+date.getMinutes():date.getMinutes()
  let ss = date.getSeconds()<10? "0"+date.getSeconds():date.getSeconds()
  return year+"-"+month+"-"+day+" "
  +hh+":"+mm+":"+ss
}

